Page({

  onLoad() {

    // wx.utils.toast()

    this.getNotifyList()


  },
  async getNotifyList() {
    const {
      code,
      message,
      data: notifyList

    } = await wx.http.get('/announcement')
    if (code !== 10000) return wx.utils.toast(message)
    this.setData({
      notifyList: notifyList
    })
    // console.log(notifyList);
  }
})